<?php
namespace Amis\form;
class InputTime extends FormItem
{
    public string $type = 'input-time';

    public function value($value)
    {
        $this->value = $value;
        return $this;
    }

    public function timeFormat(string $timeFormat = 'HH:mm')
    {
        $this->timeFormat = $timeFormat;
        return $this;
    }

    public function format(string $format = 'X')
    {
        $this->format = $format;
        return $this;
    }

    public function inputFormat(string $inputFormat = 'HH:mm')
    {
        $this->inputFormat = $inputFormat;
        return $this;
    }

    public function placeholder(string $placeholder = '请选择时间')
    {
        $this->placeholder = $placeholder;
        return $this;
    }

    public function clearable(bool $clearable = true)
    {
        $this->clearable = $clearable;
        return $this;
    }

    public function timeConstraints(bool $timeConstraints = false)
    {
        $this->timeConstraints = $timeConstraints;
        return $this;
    }

    public function embed(bool $embed = false)
    {
        $this->embed = $embed;
        return $this;
    }
}